{include file="$usertemplate/header.tpl.html" title=header}
<div class="content"> {include file="$usertemplate/left.tpl.html" title=left}
    <div class="cont_right">
        <div class="main_content">
            <h2>Download tài liệu</h2>
            <div class="details"> {if $subalbumItems }
                <div class="clearboth" style="height:1px; background:#999"></div>
                {if $resourceItems}
                <div class="otherNews1">
                    <ul>
                        {foreach from=$resourceItems key=i item=resourceItem}
                        <li><a href="{if $aid eq 5}{if $resourceItem->isFlash()}{$resourceItem->getUrl_detail($lang)}{else}{$ROOTPATH}/gallery/album/storage/{$resourceItem->getFileName()}{/if}{else}{$ROOTPATH}/gallery/album/storage/{$resourceItem->getFileName()}{/if}" title="{$resourceItem->getName($lang)}">{$resourceItem->getName($lang)}</a> </li>
                        {/foreach}
                    </ul>
                </div>
                <p>&nbsp;</p>
                {/if}
                
                {foreach from=$subalbumItems item=subalbumItem}
                {assign var=said value=$subalbumItem->getId()}
                {assign var=resourceAItems value=$resource->getObjects(1,"status=1 AND aid=$said")} <strong><a href="#" title="{$subalbumItem->getName($lang)}" style="color:#00F; font-size:14px">{$subalbumItem->getName($lang)}</a></strong>
                <div class="clearboth" style="height:1px; background:#999"></div>
                {if $resourceAItems}
                <div class="otherNews1" style="padding-top:0px;">
                    <ul>
                        {foreach from=$resourceAItems key=i item=resourceAItem}
                        <li><a href="{if $aid eq 5}{if $resourceAItem->isFlash()}{$resourceAItem->getUrl_detail($lang)}{else}{$ROOTPATH}/gallery/album/storage/{$resourceAItem->getFileName()}{/if}{else}{$ROOTPATH}/gallery/album/storage/{$resourceAItem->getFileName()}{/if}" title="{$resourceAItem->getName($lang)}">{$resourceAItem->getName($lang)}</a> </li>
                        {/foreach}
                    </ul>
                </div>
                {/if}
                <p>&nbsp;</p>
                {/foreach}
                {else}
                {if $resourceItems}
                <div class="otherNews1">
                    <ul>
                        {foreach from=$resourceItems key=i item=resourceItem}
                        <li><a href="{if $aid eq 5}{if $resourceItem->isFlash()}{$resourceItem->getUrl_detail($lang)}{else}{$ROOTPATH}/gallery/album/storage/{$resourceItem->getFileName()}{/if}{else}{$ROOTPATH}/gallery/album/storage/{$resourceItem->getFileName()}{/if}" title="{$resourceItem->getName($lang)}">{$resourceItem->getName($lang)}</a> </li>
                        <div class="clearboth" style="height:1px; background:#999"></div>
                        {/foreach}
                    </ul>
                </div>
                {else}
                <p align="center"> Dữ liệu đang cập nhật Quý Khách vui lòng ghé lại sau</p>
                {/if}
                
                {/if}
                 </div>
        </div>
    </div>
</div>
{include file="$usertemplate/footer.tpl.html" title=footer} 